﻿using Nancy;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SAP.BusinessOne.Cockpit.Services;

namespace SAP.BusinessOne.Cockpit.Handlers
{
    public class WidgetModule : CockpitModule
    {
        public WidgetModule()
            : base("widgets")
        {
            Get["/"] = parameters => Response.AsJson(new WidgetService().GetAvailableWidgets());
        }
    }
}
